package com.iterator.mapper.wechat.dhy;


import com.iterator.bean.wechat.dhy.Permission;
import org.apache.ibatis.annotations.Param;

import java.util.ArrayList;
import java.util.List;

public interface PermissionMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Permission record);

    int insertSelective(Permission record);

    Permission selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Permission record);

    int updateByPrimaryKey(Permission record);

    List<String> selectPermissionsByRoleIds(ArrayList<Integer> ids);

    List<String> selectPermissionByRoleId(@Param("roleId") Integer roleId);

    Integer selectByPermissionAndRoleId(@Param("permission") String permission, @Param("roleId") Integer roleId);

    Integer deleteByRoleId(@Param("roleId") Integer roleId);


}